const app = getApp();
Page({

  data:{
    queId:0,
    url:'',
    qid:0,
    questionDetail:'',

    isLoading:false
  },
  onLoad(options){
    const id = options.id;
    const queId = id;
    console.log(id);
    this.setData({
      qid: id,
      url: app.globalData.URL,
      isLoading:true
    });
    let that = this;
    wx.request({
      url: that.data.url + 'question/' + that.data.qid,
      method: 'GET',
      success(resp) {
        let result = resp.data.data;

        that.setData({
          questionDetail: result,
        })
        console.log(that.data.questionDetail);
      },
    });
  },

  onClickLeft(){
      wx.navigateBack();
  }

})